package com.xeem.henkel.common
{
	import flash.text.TextField;
	import flash.text.TextFormat;

	public class LanguageModel
	{
		//文字
		public var text:String;
		
		//字体
		public var font:String="Arial";
		
		//字号
		public var fontSize:String="12";
		
		//颜色
		public var fontColor:uint=0x008CD6;
		
		
		//
		public var align:String="left";
		
		public var bold:Boolean=false;;
		
		public function LanguageModel()
		{
		}
		
		public function getTextField():TextField{
			var txt:TextField=new TextField();		
			txt.selectable = false;
			txt.text=this.text;			
			txt.setTextFormat(getTextFormat());
			return txt;
		}
		
		public function getTextFormat():TextFormat{
			var tf:TextFormat = new TextFormat();
			tf.font=this.font;
			tf.size=this.fontSize;
			tf.color=this.fontColor;
			tf.bold=this.bold;
			tf.align=this.align;
			tf.leading=1;
			return tf;
		}
	}
}